<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<div style="overflow-x:auto;">
<table class="display" id="example" style="width: 3000px">
	<thead>
		<tr>
			<th><strong>工号</strong></th>
			<th><strong>考勤号码</strong></th>
			<th><strong>姓名</strong></th>
			<th><strong>职务</strong></th>
			<th><strong>上班天数</strong></th>
			<th><strong>外出天数</strong></th>
			<th><strong>假日天数</strong></th>
			<th><strong>旷工天数</strong></th>
			<th><strong>总计加班天数</strong></th>
			<th><strong>事假天数</strong></th>
			<th><strong>病假天数</strong></th>
			<th><strong>婚假天数</strong></th>
			<th><strong>产假天数</strong></th>
			<th><strong>调休天数</strong></th>
			<th><strong>年假天数</strong></th>
			<th><strong>休假天数</strong></th>
			<th><strong>其他假天数</strong></th>
			<th><strong>丧假天数</strong></th>
			<th><strong>工伤天数</strong></th>
			<th><strong>请假总计天数</strong></th>
			<th><strong>加班段1时长</strong></th>
			<th><strong>加班段2时长</strong></th>
			<th><strong>周末加班时长</strong></th>
			<th><strong>调休时长</strong></th>
			<th><strong>丧假时长</strong></th>
			<th><strong>工伤时长</strong></th>
			<th><strong>迟到总次数</strong></th>
			<th><strong>迟到总时长</strong></th>
			<th><strong>早退总次数</strong></th>
			<th><strong>早退总时长</strong></th>
			<th><strong>未打卡次数</strong></th>
			<th><strong>考勤补签次数</strong></th>
			<th><strong>周六加班</strong></th>
			<th><strong>周日加班</strong></th>
			<th><strong>小夜</strong></th>
			<th><strong>大夜</strong></th>
			<th><strong>应勤小时数</strong></th>
			<th><strong>应勤天数</strong></th>
		</tr>
	</thead>
	<tbody>
		<s:if test="#request.attendances == null || #request.attendances.size() <= 0">
			<tr class="gradeX"> <td colspan="7">暂无数据</td> </tr>
		</s:if>
		<s:else>
			<s:iterator value="#request.attendances" var="a" status="sta">
				<s:if test="#sta.even"> <tr class="gradeA"> </s:if> <s:else> <tr class="gradeC"> </s:else>
				<td>${a.employeeinfoWork.workNo}</td>
				<td>${a.employeeinfoWork.baseId.salaryNo}</td>
				<td>${a.employeeinfoWork.baseId.name}</td>
				<td>${a.employeeinfoWork.duty.dutyName}</td>
				<td>${a.workDays}</td>
				<td>${a.outDays}</td>
				<td>${a.holidayDays}</td>
				<td>${a.absentDays}</td>
				<td>${a.totalOvertimeDays}</td>
				<td>${a.absenceLeaveDays}</td>
				<td>${a.sickLeaveDays}</td>
				<td>${a.marryLeaveDays}</td>
				<td>${a.maternityLeaveDays}</td>
				<td>${a.adjustDays}</td>
				<td>${a.yearLeaveDays}</td>
				<td>${a.furloughLeaveDays}</td>
				<td>${a.otherLeaveDays}</td>
				<td>${a.funeralLeaveDays}</td>
				<td>${a.injuryDays}</td>
				<td>${a.totalLeaveDays}</td>
				<td>${a.overTimeOneDays}</td>
				<td>${a.overTimeTwoDays}</td>
				<td>${a.overWeekendDays}</td>
				<td>${a.adjustLeave}</td>
				<td>${a.funeralLeave}</td>
				<td>${a.injuryLeave}</td>
				<td>${a.delayTimes}</td>
				<td>${a.delayLeave}</td>
				<td>${a.earlyTimes}</td>
				<td>${a.earlyLeave}</td>
				<td>${a.unCardTimes}</td>
				<td>${a.reCardTimes}</td>
				<td>${a.saturdayDays}</td>
				<td>${a.sundayDays}</td>
				<td>${a.smallNight}</td>
				<td>${a.bigNight}</td>
				<td>${a.washHours}</td>
				<td>${a.washDays}</td>
				</tr>
			</s:iterator>
		</s:else>
	</tbody>
</table>
</div>
<p>
    <%@ include file="/WEB-INF/pages/common/main_orgtab_pager.jsp" %>
</p>

<script type="text/javascript">
    function pageTo(url){
        $.ajax(url, {
            type: "POST",
            data:{"organizationId":"${organizationId}", "year":"${year}", "month":"${month}"},
            dataType:"html",
            cache:false,
            success:function(a) {
                var obj = $("#windown-content");
                obj.html("");
                obj.append(a);
            },
            complete:function() {
            }
        });
    }
</script>